package com.sacc.pojo;


import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @author 滚~韬
 * @date 2022/4/2 10:52
 */
@Data
@TableName("product_info_all")
public class ProductInfoAll {
    @TableId
    private Integer productId;//产品id
    @TableField("product_name")
    private String productName;//产品名称
    @TableField("product_detail")
    private String productDetail;//产品描述
    @TableField("product_price")
    private Float productPrice;//产品价格
    @TableField("product_origin_id")
    private Integer productOriginId;//产品溯源id
    @TableField("paid_number")
    private Integer paidNumber;//卖出数量
    @TableField("image_url")
    private String imageUrl;//文件图片路径
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField(fill = FieldFill.INSERT,value = "create_time")
    private LocalDateTime createTime;
    @TableField(exist = false)
    private String productTypeName;
}